/*
 * can_task.h
 *
 *  Created on: 2018-4-9
 *      Author: root
 */

#ifndef CAN_TASK_H_
#define CAN_TASK_H_
#ifdef __cplusplus

extern "C"{

#endif
#include "tcu_can.h"

#define CAN_SAMPLATE 250000       /*CAN�Ĳ�����*/
//#define CAN_SAMPLATE 125000       /*CAN�Ĳ�����*/

typedef struct
{
	u8 priority;
	u8 R;
	u8 DP;
	u8 pf;
	u8 ps;
	u8 sa;
	u8 lendata;
	u8 *pdata;

}Msg_J1939;
void initTaskTcuRecv(void);
int TcuSendToCha(unsigned char port,GW_Can *gwcan);
#ifdef __cplusplus
}
#endif

#endif /* CAN_TASK_H_ */
